#include"rbtree.hpp"

using namespace std;

namespace yjl
{
	
	template<class K>
	class Myset
	{
		
		struct setkeyofT
		{
			const K& operator()(const K& data)
			{
				return data;
			}
		};
	public:
		typedef  typename rbtree<K, const K, setkeyofT>::Iterator Iterator;
		
		Iterator begin()
		{
			return rb.begin();
		}
		Iterator end()
		{
			return rb.end();
		}
		bool insert(const K& data)
		{
			return rb.Insert(data);
		}
		
	private:
		rbtree<K, const K, setkeyofT> rb;
	};
}